package com.xiaoyu.lanling.feature.vip.data

import com.xiaoyu.base.net.RequestCreator
import com.xiaoyu.lanling.common.config.HttpConfig
import com.xiaoyu.lanling.event.vip.VipMineEvent
import com.xiaoyu.lanling.event.vip.VipProductListEvent

class VipData {

    fun getVipProductList(requestTag: Any) {
        RequestCreator.create<VipProductListEvent>(requestTag, VipProductListEvent::class.java)
                .setRequestUrl(HttpConfig.LANLING_GET_VIP_PRODUCT_LIST)
                .enqueue()
    }

    fun getMyVip(requestTag: Any) {
        RequestCreator.create<VipMineEvent>(requestTag, VipMineEvent::class.java)
                .setRequestUrl(HttpConfig.LANLING_GET_MY_VIP)
                .enqueue()
    }
}